package com.wm.statisticsService.controller;


import com.wm.commonutils.R;
import com.wm.statisticsService.service.StatisticsDailyService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 网站统计日数据 前端控制器
 * </p>
 *
 * @author sshdg
 * @since 2020-10-15
 */
@RestController
@RequestMapping("/statisticsService/statistics-daily")
public class StatisticsDailyController {

    @Autowired
    StatisticsDailyService statisticsDailyService;

    @ApiOperation("统计指定日期的注册人数，生成统计数据")
    @GetMapping("/countRegister/{day}")
    public R countRegister(@PathVariable String day){
        statisticsDailyService.countRegister(day);
        return R.ok();
    }
}

